$(function () {
    function getList() {
        $.get('/index/rank', function (res) {
            console.log(res.data)
            const a = document.querySelector('.hotrank_list a')
            for (let i = 0; i < a.length; i++) {
                a[i].text(res.data[i].title)
                console.log(a[i])
            }
        })
    }
    getList()
})